package cn.touna.jss.common.properties.disconf;


import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created by hujinhui on 2017/7/31.
 */
@Component
//@ConfigurationProperties(prefix = "jingzhengu")
//@PropertySource("classpath:properties/jingzhengu.properties")
@DisconfFile(targetDirPath = "disconf", filename = "jingzhengu.properties")
public class JingzhenguProperties {

    private String partnerId;

    private String key;

    private String url;
    private String getMakeByAllUrl;
    private String getModelsUrl;
    private String getStylesUrl;


    @DisconfFileItem(name = "jingzhengu.partnerId", associateField = "partnerId")
    public String getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    @DisconfFileItem(name = "jingzhengu.key", associateField = "key")
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @DisconfFileItem(name = "jingzhengu.url", associateField = "url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @DisconfFileItem(name = "jingzhengu.getMakeByAllUrl", associateField = "getMakeByAllUrl")
    public String getGetMakeByAllUrl() {
        return getMakeByAllUrl;
    }

    public void setGetMakeByAllUrl(String getMakeByAllUrl) {
        this.getMakeByAllUrl = getMakeByAllUrl;
    }

    @DisconfFileItem(name = "jingzhengu.getStylesUrl", associateField = "getStylesUrl")
    public String getGetStylesUrl() {
        return getStylesUrl;
    }

    public void setGetStylesUrl(String getStylesUrl) {
        this.getStylesUrl = getStylesUrl;
    }

    @DisconfFileItem(name = "jingzhengu.getModelsUrl", associateField = "getModelsUrl")
    public String getGetModelsUrl() {
        return getModelsUrl;
    }

    public void setGetModelsUrl(String getModelsUrl) {
        this.getModelsUrl = getModelsUrl;
    }


}
